
'''
字符 0 的acsii码是48
'''

str  = input("请输入一串字符：")

eng = 0
dig = 0
space = 0
other = 0
for ch in str:
    if 65<=ord(ch)<=89 or 97<=ord(ch)<=121:
        eng += 1
    elif ch == " ":
        space = space + 1
    elif 48<=ord(ch)<=57:
        dig  += 1
    else:
        other = other + 1
print("英文：",eng)
print("数字：",dig)
print("空格：",space)
print("其他：",other)
